package com.manager.car.dao;


import java.util.List;

import com.manager.car.po.ManagerInfo;
import com.manager.car.util.PageModel;

public interface IManagerInfoDao{

	public ManagerInfo getElement(Integer id);
	
	//query element by ID
	public List<ManagerInfo> getQueryListByHql(String hql);
	
	//add ManagerInfo
	public boolean save(ManagerInfo mi);
	
	//update managerStatic;
	public boolean update(ManagerInfo mi);
	
	//query a pagemodel by hql
	public PageModel<ManagerInfo> queryPageModelByHql(final int pageNo ,final int pageSize,String hql);
	
	//delete a ManagerInfo by Id
	public boolean delete(Integer id);
	
	//update ManagerInfoStatic equals 0
	public boolean updataManagerInfoStaticById(Integer id);
}
